package com.asin.service_edu.controller;


import com.asin.service_edu.entity.EduTeacher;
import com.asin.service_edu.service.EduTeacherService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 讲师 前端控制器
 * </p>
 *
 * @author Asin
 * @since 2021-10-06
 */
@Api(description = "讲师管理模块")
@RestController
@RequestMapping("/service-edu/edu-teacher")
public class EduTeacherController {

    @Autowired
    private EduTeacherService eduTeacherService;

    @ApiOperation(value = "获取所有讲师")
    @GetMapping
    public List<EduTeacher> list(){
        List<EduTeacher> list = eduTeacherService.list(null);
        return list;
    }



}

